#!/usr/bin/python3
# -*- coding: utf-8 -*-
"""
常量
Attributes:
    __version__ (str): "0.0.1"
    __copyright__ (str): "Copyright (C) 2025 z"
    __license__ (str): "MIT"
    __author__ (str): "Z"
"""

# 日志
LOG_LEVEL = 'DEBUG'         # 日志级别按照严重程度依次递增,即 DEBUG < INFO < WARNING < ERROR < CRITICAL。当设置了某个级别时,只有该级别及以上级别的日志消息才会被记录。例如,如果将日志记录器的级别设置为 INFO,那么只有 INFO、WARNING、ERROR 和 CRITICAL 级别的消息会被记录,而 DEBUG 级别的消息则不会被记录。
LOG_PATH = '/app/logs'      # 日志存放路径
LOG_BAK = 3                 # 备份个数
LOG_MAX = 1024*10240        # 日志大小

FLASK_ROBOT_WEBHOOK = "http://127.0.0.1:7000/webhook/talkrobot"
# jabeplate 数据入库使用 mysql 连接权限
RECORD_DATABASE = True
MYSQL_LOCAL_DB = "cogh"
MYSQL_LOCAL_HOST = "localhost"
MYSQL_LOCAL_PORT = 3306
MYSQL_LOCAL_USER = ""
MYSQL_LOCAL_PASSWD = ""
# 巡检
IS_INSPECTION = True
############################################
# AI
OPENROUTER_APP_KEY = ""
OPENROUTER_MODEL = ""
OPENROUTER_DEFAULT_PROMPT = ""
############################################
# Aliyun
ALIYUN_ACCESS_KEY_ID = ""
ALIYUN_ACCESS_KEY_SECRET = ""
############################################3
# 钉钉
IS_DINGTALK_SEND = True
DINGTALK_APP_KEY = ""
DINGTALK_APP_SECRET = ""

DINGTALK_DEV_TOKEN = ""
DINGTALK_TEST_TOKEN = ""
DINGTALK_PRE_TOKEN = ""
DINGTALK_PROD_TOKEN = ""
DINGTALK_DEBUG_TOKEN = ""
############################################
# 飞书
IS_FEISHU_SEND = False
FEISHU_APP_ID = ""
FEISHU_APP_SECRET = ""
FEISHU_ENCRYPT_KEY = ""
FEISHU_VERIFICATION_TOKEN = ""

FEISHU_DEV_ACCESS = ""
FEISHU_TEST_ACCESS = ""
FEISHU_PRE_ACCESS = ""
FEISHU_PROD_ACCESS = ""
FEISHU_DEBUG_ACCESS = ""
############################################
# slack 未完成请不要开起/删除
IS_SLACK_SEND = False
SLACK_WEV_TOKEN = ""
SLACK_DEV_CHANNEL = ""
SLACK_TEST_CHANNEL = ""
SLACK_PRE_CHANNEL = ""
SLACK_PROD_CHANNEL = ""
SLACK_DEBUG_CHANNEL = ""
############################################
# prometheus 服务端地址，用于区分环境
PROMETHEUS_DEV_ADDR = ""
PROMETHEUS_TEST_ADDR = ""
PROMETHEUS_PRE_ADDR = ""
PROMETHEUS_PROD_ADDR = ""
############################################
# Jenkins
JENKINS_DEV_USER = ""
JENKINS_DEV_PASSWD = ""
JENKINS_DEV_WEBHOOK = ""

JENKINS_TEST_USER = ""
JENKINS_TEST_PASSWD = ""
JENKINS_TEST_WEBHOOK = ""

JENKINS_PRE_USER = ""
JENKINS_PRE_PASSWD = ""
JENKINS_PRE_WEBHOOK = ""

JENKINS_PROD_USER = ""
JENKINS_PROD_PASSWD = ""
JENKINS_PROD_WEBHOOK = ""
############################################
# MySQL
MYSQL_DEV_DB = ""
MYSQL_DEV_HOST = "localhost"
MYSQL_DEV_PORT = 3306
MYSQL_DEV_USER = ""
MYSQL_DEV_PASSWD = ""

MYSQL_TEST_DB = ""
MYSQL_TEST_HOST = "localhost"
MYSQL_TEST_PORT = 3306
MYSQL_TEST_USER = ""
MYSQL_TEST_PASSWD = ""

MYSQL_PRE_DB = "mysql"
MYSQL_PRE_HOST = "localhost"
MYSQL_PRE_PORT = 3306
MYSQL_PRE_USER = ""
MYSQL_PRE_PASSWD = ""

MYSQL_PROD_DB = ""
MYSQL_PROD_HOST = "localhost"
MYSQL_PROD_PORT = 3306
MYSQL_PROD_USER = ""
MYSQL_PROD_PASSWD = ""
############################################
